import api from "@/api/axiosApi"

const scenicSpot = {
    SearchScenicAll(url,params){//分页查询全部，分页搜索
        return api.get(url,params)
    },
	AddScenic(url,params){//新增
		return api.post(url,params)
	},
	editorScenic(url,params){//编辑
		return api.put(url,params)
	},
	deleteScenic(url,params){//删除
	    return api.del(url,params)
	},
	SearchDistrict(url,params){
		return api.get(url,params)
	},
	SearHomeSpot(url,params){//查询首页旅游景点信息
		return api.get(url,params)
	},
	searchScenicInfo(url,params){//查询单个景点信息
		return api.get(url,params)
	},
	hotsesCenicSpot(url,params){
		return api.get(url,params)
	},
	GetTree(url,parms){
		return api.get(url,parms)
	},
	selectNoLoginEvaluateAll(url,parms){//未登录时查询全部评价
		return api.get(url,parms)
	},
	selectEvaluateAll(url,parms){//登录后查询全部评价
		return api.get(url,parms)
	},
	addEvaluateLike(url,parms){//用户点赞评价
		return api.post(url,parms)
	},
	addEvaluate(url,parms){//用户新增评价
		return api.post(url,parms)
	},
	editEvaluate(url,parms){//修改评价
		return api.post(url,parms)
	},
	delEvaluate(url,parms){
		return api.del(url,parms)
	},
	/**
	 * 后台查询全部旅游景点点评
	 */
	getMagEvaluateAll(url, params){
		return api.get(url, params)
	},
	/**
	 * 后台删除旅游景点点评
	 */
	DeleteScenicEvaluate(url, params){
		return api.del(url, params)
	}
}

export default scenicSpot;